#include "LinuxInit.h"

#ifdef LINUX
#include "../../tools/ShareApi.h"

DEF_BEG_LIBTOOLS

long CSignalInit::_isIgnSignal = 0;

CSignalInit::CSignalInit()
{
	if (ShareApi::InterlockedExchange(&_isIgnSignal, 1) == 0) {
		signal(SIGPIPE, SIG_IGN);
	}
}

DEF_END_LIBTOOLS
#endif